Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 7:35 PM, Wolfgang Schuster wrote: > [...] > You have to replace %% with \letterpercent\letterpercent because you're > still playing with TeX rules. > > \startxmlsetups xml:special >     \startitem > \cldcontext{string.gsub("\xmlraw{#1}{.}"

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.08.2020 um 19:16: On 8/27/20 6:16 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 27.08.2020 um 17:56: [...] \startxmlsetups xml:special \startitem \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", "

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 6:16 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 27.08.2020 um 17:56: >> [...] >>\startxmlsetups xml:special >> \startitem >> \cldcontext{string.gsub([[\xmlraw{#1}{.}]], "%%", >> "\\letterp

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 27.08.2020 um 17:56: On 8/27/20 5:30 PM, Taco Hoekwater wrote: [...] Using Lua gsub(), I need to replace something like:  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") Double it: %% See also https://www.lua.org/manual/5

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
On 8/27/20 5:30 PM, Taco Hoekwater wrote: >> [...] >> Using Lua gsub(), I need to replace something like: >> >>  string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") > > Double it: %% > > See also https://www.lua.org/manual/5.3/manual.htm

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Hans van der Meer
xt with percent signs. > ConTeXt parses them as comments (so no output). > > Using Lua gsub(), I need to replace something like: > > string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") > > How do I need to invoke % to get the character found? > > Ma

Re: [NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Taco Hoekwater
> string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") Double it: %% See also https://www.lua.org/manual/5.3/manual.html#6.4.1 , but the mention of %% is a bit hidden. Best wishes, Taco___ If your que

[NTG-context] catch % in gsub("%", "\\letterpercent")

2020-08-27 Thread Pablo Rodriguez
Dear list, I have and \xmlraw command that gives some text with percent signs. ConTeXt parses them as comments (so no output). Using Lua gsub(), I need to replace something like: string.gsub([[\xmlraw{#1}{.}]], "%", "\\letterpercent") How do I need to invoke % to get

[NTG-context] MP \letterpercent

2013-01-27 Thread Procházka Lukáš
Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw textext(\T); % draw btex \T etex; % Err draw

Re: [NTG-context] MP \letterpercent

2013-01-27 Thread Hans Hagen
On 1/27/2013 10:05 PM, Procházka Lukáš wrote: Hello, why the MP code doesn't draw % and # when it uses TeX's \U - inside MP block?: \def\T{TTT} \def\U{UUU \letterpercent\letterhash} \starttext \letterpercent \letterhash \par \startMPcode draw btex AAA etex; draw